<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<h2>Hello World!</h2>
<%= new java.util.Date()%>
<%--JSP脚本片段--%>
<%
    int sum = 0;
    for (int i = 1;i<=100; i++) {
        sum+=i;
    }
    out.println("<h1>Sum="+sum+"</h1>");
%>
<%
    int x = 11;
    out.println(x);
%>
<p>这是一个jsp文档</p>
<%
    int y = 2;
    out.println(y);
%>
<hr>
</body>
</html>
